<?php

    $cambiar=0;
    $sql= "select * from notaitem WHERE(codalumno='".$codalumno."' AND codasignatura='".$codasignatura."'AND coditem ='15' AND evaluacion='".$_GET['c3']."')";
    $res=mysql_query($sql);
    $res2=mysql_fetch_assoc($res);
    $op1="";$op2="";$op3="";$op4="";
    if($res2){
        $nota1=$res2['nota'];
        switch($nota1)
            {
                case 9:$op1="checked='checked'";break;
                case 6:$op2="checked='checked'";break;
                case 3:$op3="checked='checked'";break;
                case 0:$op4="checked='checked'";break;
            }  
    }else{
        $op4="checked='checked'";
    }
        echo"<div class='der radio'>
                <input value='9' type='radio' name='radio15' class='img ap_4' id='it4.3.1' ".$op1."/>
                <input value='6' type='radio' name='radio15' id='it4.3.2' class='img ap_4' ".$op2."/>
                <input value='3' type='radio' name='radio15' id='it4.3.3' class='img ap_4' ".$op3."/>
                <input value='0' type='radio' name='radio15' id='it4.3.4' class='img ap_4' ".$op4."/>
            </div>";
?>